From: Lars Ingebrigtsen Date: Sat, 11 Feb 2012 17:06:14 +0000 (+0100) Subject: * gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~801 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=134761cf2c2532cb5cfe0c863d34d4dac4e71015;p=emacs.git * gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails. --- diff --git a/src/ChangeLog b/src/ChangeLog index bf7a737012b..0fa26dce6d1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-02-11 Lars Ingebrigtsen + + * gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails. + 2012-02-11 Eli Zaretskii * w32select.c (Fx_selection_exists_p): Sync doc string and diff --git a/src/gnutls.c b/src/gnutls.c index d7bf0e8edb8..5da84bdd960 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -363,7 +363,7 @@ emacs_gnutls_write (struct Lisp_Process *proc, const char *buf, EMACS_INT nbyte) if (rtnval < 0) { - if (rtnval == GNUTLS_E_AGAIN || rtnval == GNUTLS_E_INTERRUPTED) + if (rtnval == GNUTLS_E_INTERRUPTED) continue; else break;